home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / python-support / python2.6 / gnome_sudoku / gnome_sudoku.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  1.2 KB  |  31 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import sys
  5.  
  6. class SafeStdout:
  7.     
  8.     def __init__(self):
  9.         self.stdout = sys.stdout
  10.  
  11.     
  12.     def fileno(self):
  13.         return self.stdout.fileno()
  14.  
  15.     
  16.     def write(self, data):
  17.         
  18.         try:
  19.             self.stdout.write(data)
  20.         except:
  21.             pass
  22.  
  23.  
  24.  
  25. sys.stdout = SafeStdout()
  26.  
  27. def start_game():
  28.     import main
  29.     main.start_game()
  30.  
  31.